package com.cqhfan.auth.config;

import com.cqhfan.auth.interceptors.FeignReplyUserInfoInterceptor;
import feign.Feign;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(Feign.class)
public class FeignReplyConfig {

    @Bean
    public FeignReplyUserInfoInterceptor feignReplyUserInfoInterceptor() {
        return new FeignReplyUserInfoInterceptor();
    }

}
